﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCLHShenQingXX_JHBG.ascx.cs" Inherits="Web.Controls.LAIHAN.UCLHShenQingXX_JHBG" %>
<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>
<style type="text/css">
   
</style>
<script type="text/javascript">
    
   
    function UCLHShenQingXX_JHBG_ASPxCallbackCommonComplete(rs) {
        //debugger;
        var arr = rs.split('|');
        var type = arr[0];
        var state = arr[1];
        if (state == "0") {
            UCLHShenQingXX_JHBG_HXJE.SetText(arr[2]);
            UCLHShenQingXX_JHBG_YSJE.SetText(arr[3]);
            UCLHShenQingXX_JHBG_QFJE.SetText(arr[4]);
        }
        else {
            alert(arr[2]);
        }
    }    

    function txtJHBGSQLChange()
    { 
        if (isNaN(UCLHShenQingXX_JHBG_txtJHBGSQL.GetText()))
        {
            alert("请输入正确的申请量");
            return;
        }
        if (UCLHShenQingXX_JHBG_txtJHBGSQL.GetText().indexOf(".")!=-1)
        {
            alert("请输入正确的申请量");
            return;
        }
        if (UCLHShenQingXX_JHBG_cbJHBGBLF.GetChecked())
        {
            UCLHShenQingXX_JHBG_txtJHBGSQL.SetText(UCLHShenQingXX_JHBG_txtJHBGSQL.GetText() * 100);
        }
        //重新计算核销及欠费金额
        if (txtJHBGYJH.GetText() != "") {
            UCLHShenQingXX_JHBG_ASPxCallback1.PerformCallback("recount");
        }
    }
</script>
<dx:ASPxHiddenField ID="hdCollection" ClientInstanceName="UCLHShenQingXX_JHBG_hdCollection" runat="server"></dx:ASPxHiddenField>
<dx:ASPxCallback ID="ASPxCallback1" ClientInstanceName="UCLHShenQingXX_JHBG_ASPxCallback1" runat="server" OnCallback="ASPxCallback1_Callback" ClientSideEvents-CallbackComplete="function(s,e){UCLHShenQingXX_JHBG_ASPxCallbackCommonComplete(e.result);}"></dx:ASPxCallback>
<table border="0" style="width: 99%; padding: 0px; line-height: 21.5px;" runat="server"
    id="tab">
    <tr>
        <td style="text-align: right;white-space:nowrap">实用量：
        </td>
        <td>
            <dx:ASPxTextBox ID="txtJHBGSYL" runat="server" HorizontalAlign="Right"  Style="width: 100%" />
        </td>
        <td style="text-align: right;;white-space:nowrap">计划量：
        </td>
        <td>
            <dx:ASPxTextBox ID="txtJHBGYJH" ClientInstanceName="txtJHBGYJH" runat="server"  HorizontalAlign="Right" Style="width: 100%" />
        </td>
        <td style="text-align: right;;white-space:nowrap">加价金额：
        </td>
        <td>
            <dx:ASPxTextBox ID="txtJHBGJJJE" runat="server"  HorizontalAlign="Right" Style="width: 100%" />
        </td>
        <td id="tdJHBGSQL" runat="server" >
            <table>
                <tr>
                    <td style="white-space:nowrap">申请变更为：
                    </td>
                    <td>
                        <dx:ASPxTextBox ID="txtJHBGSQL" runat="server" HorizontalAlign="Right" ClientInstanceName="UCLHShenQingXX_JHBG_txtJHBGSQL" Style="width: 100%"  >
                            <ClientSideEvents TextChanged="function(s,e){txtJHBGSQLChange();}"  />
                            </dx:ASPxTextBox>
                    </td>
                    <td style="white-space:nowrap">
                        <dx:ASPxCheckBox ID="cbJHBGBLF"  Checked="false" ClientInstanceName="UCLHShenQingXX_JHBG_cbJHBGBLF" runat="server" Text="百立方米输入" >
                        </dx:ASPxCheckBox>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td style="text-align: right;white-space:nowrap">应收金额：
        </td>
        <td>
            <dx:ASPxTextBox ID="txtJHBGYSJE" ClientInstanceName="UCLHShenQingXX_JHBG_YSJE" runat="server"  HorizontalAlign="Right" Style="width: 100%"/>
        </td>
        <td style="text-align: right;white-space:nowrap">核销金额：
        </td>
        <td>
            <dx:ASPxTextBox ID="txtJHBGHXJE" ClientInstanceName="UCLHShenQingXX_JHBG_HXJE" runat="server"  HorizontalAlign="Right" Style="width: 100%" />
        </td>
        <td style="text-align: right;white-space:nowrap">欠费金额：
        </td>
        <td>
            <dx:ASPxTextBox ID="txtJHBGQFJE" ClientInstanceName="UCLHShenQingXX_JHBG_QFJE" runat="server"  HorizontalAlign="Right" Style="width: 100%"/>
        </td>
        <td></td>
    </tr>
</table>
